package com.flower.baseservice.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author 张晓焕
 * @Date 2022/7/13 14:31
 * @Version 1.0
 */
@RestController
public class TestController {
    @PreAuthorize("hasAuthority('adoojkomin')")
    @GetMapping("/test")
    public String test() {
        return "test";
    }
}
